<template>
  <div class="content">
    <!-- 常规写法 父传子 -->
    <!-- <busA @on-click="getFlag"></busA>
    <busB :flag="flag"></busB> -->

    <!-- bus 事件总线 写法 无需在父组件 声明变量 -->
    <busA></busA>
    <busB></busB>
  </div>
</template>

<script setup lang="ts">
import { ref, provide, readonly } from "vue"
import busA from "./components/busA.vue"
import busB from "./components/busB.vue"
/* let flag = ref(false)

const getFlag = (val: boolean) => {
  flag.value = val
  console.log(flag.value)
} */
</script>

<style lang="less" scoped>

</style>